package com.guigu.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.community.pojo.Carousel;
import com.guigu.community.pojo.ProductImage;
import com.guigu.community.vo.CarouselVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarouselMapper extends BaseMapper<Carousel> {
    //分页查询
    List<Carousel> selectCarousel(CarouselVo carouselVo);

    //根据轮播图Id修改轮播图的启用功能
    //注意：不加Param可能会导致xml中文件识别错误
    Integer updateIsActive(@Param("carouselId")Integer carouselId,@Param("isActive")Integer IsActive);
}
